.nutui-react-demo {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.index-page {
  padding: 0;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.search-bar {
  padding: 10px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-input {
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 16px;
  color: #999;
  font-size: 14px;
  text-align: center;
}

.index-tabs {
  .nut-tabs__titles {
    background-color: #fff;
    position: sticky;
    top: 54px;
    z-index: 10;
  }

  .nut-tabs__content {
    padding: 0;
  }
}

.post-list {
  height: calc(100vh - 94px);
}

.post-item {
  margin: 10px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  display: block;
}

.post-time {
  font-size: 12px;
  color: #999;
  display: block;
  margin-top: 2px;
}

.post-content {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
  display: block;
}

.post-images {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;

  &.single-image {
    .post-image {
      width: 100%;
      height: 200px;
      border-radius: 8px;
    }
  }

  .post-image {
    width: calc(33.33% - 5px);
    height: 100px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    object-fit: cover;

    &:nth-child(3n) {
      margin-right: 0;
    }
  }
}

.post-footer {
  display: flex;
  border-top: 1px solid #f5f5f5;
  padding-top: 10px;
}

.post-action {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-icon {
  margin-right: 5px;
  font-size: 16px;
}

.action-count {
  font-size: 14px;
  color: #666;
}
